import { Peoples, Permissions, Remind, System } from '@icon-park/vue-next';
import { markRaw } from 'vue';

const user = () => import('@/views/system/user/index.vue');
const role = () => import('@/views/system/role/index.vue');
const notice = () => import('@/views/system/notice/index.vue');

const pages = {
  path: '/system',
  name: 'system',
  redirect: '/system/user',
  meta: {
    icon: markRaw(System),
    title: '系统'
  },
  children: [
    {
      path: 'user',
      name: 'system_user',
      meta: {
        icon: markRaw(Peoples),
        title: '用户管理'
      },
      component: user
    },
    {
      path: 'role',
      name: 'system_role',
      meta: {
        icon: markRaw(Permissions),
        title: '角色管理'
      },
      component: role
    },
    {
      path: 'notice',
      name: 'system_notice',
      meta: {
        icon: markRaw(Remind),
        title: '系统通知',
        dot: true,
        dotColor: '#f56c6c'
      },
      component: notice
    }
  ]
};
export default pages;
